<?php
ini_set('output_buffering','on');
ini_set('zlib.output_compression', 0);
defined('APPLICATION_PATH')
        || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
defined('CACHED_PATH')
        || define('CACHED_PATH', realpath(dirname(dirname(__FILE__))));
defined('APPLICATION_ENV')
        || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

set_include_path(implode(PATH_SEPARATOR, array(
            dirname(dirname(__FILE__)) . '/library',
            dirname(dirname(__FILE__)) . '/library/Sunny',
            dirname(dirname(__FILE__)) . '/library/Haibl',
            get_include_path(),
        )));

require_once 'ErrorHandled.php';
require_once 'ConfigData.php';
require_once 'Zend/Application.php';
$application = new Zend_Application(
                APPLICATION_ENV,
                APPLICATION_PATH . '/configs/application.ini'
);



$application->bootstrap()->run();
?>